package san.java.inherit_07;



public class Student extends Person{

    protected Long studentId;

    public Student() {
        super();
        this.studentId = 0L;
    }

    public Student(String name, int sex, int age, Long studentId) {
        super(name, sex, age);
        this.studentId = studentId;
    }

    @Override
    public void work() {
        study();
    }

    public void study() {
        System.out.println("studying...");
    }

    @Override
    public void showInfos() {
        System.out.println("我是学生");
    }
}
